package cn.seaboot.admin.user.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 系统角色 [t_sys_role]
 * <p>
 *
 * @author Mr.css on  2019-03-25 11:40
 */
@Schema(description = "系统角色 [t_sys_role] 实体类")
public class Role implements Serializable {
    private static final long serialVersionUID = -537042137373238050L;

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;
    /**
     * 归属机构
     */
    @Schema(description = "归属机构")
    private String orgId;
    /**
     * 角色编码
     */
    @Size(max = 64)
    @Schema(description = "角色编码")
    private String authorityCode;
    /**
     * 角色名称
     */
    @Size(max = 64)
    @Schema(description = "角色名称")
    private String roleName;
    /**
     * 角色描述
     */
    @Size(max = 64)
    @Schema(description = "角色描述")
    private String description;
    /**
     * 是否不可用
     */
    @Schema(description = "是否不可用")
    private Boolean disabled;
    /**
     * 系统的内置账号，除了系统初始化，一般不允许编辑
     */
    @Schema(description = "是否可编辑")
    private Boolean editable;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getAuthorityCode() {
        return authorityCode;
    }

    public void setAuthorityCode(String authorityCode) {
        this.authorityCode = authorityCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Boolean getEditable() {
        return editable;
    }

    public void setEditable(Boolean editable) {
        this.editable = editable;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id='" + id + '\'' +
                ", orgId='" + orgId + '\'' +
                ", authorityCode='" + authorityCode + '\'' +
                ", roleName='" + roleName + '\'' +
                ", description='" + description + '\'' +
                ", disabled=" + disabled +
                ", editable=" + editable +
                '}';
    }
}
